package ${basePackage}.marker.cli.command;

import cn.hutool.core.util.ReflectUtil;
import ${basePackage}.marker.model.DataModel;
import picocli.CommandLine;

import java.lang.reflect.Field;

@CommandLine.Command(name="config",mixinStandardHelpOptions = true,description = "查看参数信息")
public class ConfigCommand implements Runnable{
    @Override
    public void run() {
        System.out.println("查看参数信息");
        Field[] fields = ReflectUtil.getFields(DataModel.class);
        for(Field filed:fields) {
            System.out.println("字段名称: " + filed.getName());
            System.out.println("字段类型: " + filed.getType());
            System.out.println("---");
        }
    }
}
